var mongoose = require('mongoose');

var Schema = mongoose.Schema;
var ObjectId = Schema.ObjectId;

var MemberSchema = new Schema({
    name: {
        type: String
    },
    email: {
        type: String
    },
    phone: {
        type: String
    },
    sex: {
        type: String
    },
    birthday: {
        type: Date
    },
    address: {
        type: String
    },
    remark: {
        type: String
    },
    create_at: {
        type: Date,
        default: Date.now
    },
    update_at: {
        type: Date,
        default: Date.now
    },
    deleted: {
        type: Boolean
    }
});

mongoose.model('Member', MemberSchema);